// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * DataflowSession generated by hbm2java
 */
@Entity
@Table(name = "dataflow_session", catalog = "magento")
public class DataflowSession implements java.io.Serializable {

	private Integer sessionId;
	private int userId;
	private Date createdDate;
	private String file;
	private String type;
	private String direction;
	private String comment;
	private Set dataflowImportDatas = new HashSet(0);

	public DataflowSession() {
	}

	public DataflowSession(int userId) {
		this.userId = userId;
	}

	public DataflowSession(int userId, Date createdDate, String file,
			String type, String direction, String comment,
			Set dataflowImportDatas) {
		this.userId = userId;
		this.createdDate = createdDate;
		this.file = file;
		this.type = type;
		this.direction = direction;
		this.comment = comment;
		this.dataflowImportDatas = dataflowImportDatas;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "session_id", unique = true, nullable = false)
	public Integer getSessionId() {
		return this.sessionId;
	}

	public void setSessionId(Integer sessionId) {
		this.sessionId = sessionId;
	}

	@Column(name = "user_id", nullable = false)
	public int getUserId() {
		return this.userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "created_date", length = 19)
	public Date getCreatedDate() {
		return this.createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	@Column(name = "file")
	public String getFile() {
		return this.file;
	}

	public void setFile(String file) {
		this.file = file;
	}

	@Column(name = "type", length = 32)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "direction", length = 32)
	public String getDirection() {
		return this.direction;
	}

	public void setDirection(String direction) {
		this.direction = direction;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "dataflowSession")
	public Set getDataflowImportDatas() {
		return this.dataflowImportDatas;
	}

	public void setDataflowImportDatas(Set dataflowImportDatas) {
		this.dataflowImportDatas = dataflowImportDatas;
	}

}
